package com.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.common.model.SecurityUser;
import com.demo.entity.Permission;

import java.util.Set;

public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     * 获取登录操作权限
     * @param userId
     * @return
     */
    Set<String> selectPermissionListByUserId(Integer userId);

    /**
     * 获取登录用户的菜单权限
     * @param id
     * @return
     */
    Set<Permission> selectMenuPermissionListByUserId(Integer userId);
}